﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;

namespace Cofe.Web.Feed
{
    public enum FeedDirectory { Current, Archive, Entry }
    public interface IFeedFileSystemHelper
    {
        /// <summary>
        /// Find the atom file with latest lastWriteTime
        /// </summary>
        /// <returns></returns>
        //FeedId GetLatestFeed();

        //XmlWriter GetXmlWriter(FeedId fid);
        //XmlReader GetXmlReader(FeedId fid);

        string CurrentFeedPath { get; }
        string ArchiveFeedPath { get; }
        string EntryFeedPath { get; }

        string GetLatestFeed();
        string GetETag(FeedId feedId);
        void CleanUpCurrentFeedDirectory(FeedId recentFeedId);
        bool IsExists(FeedDirectory dir, string fileName);
        XmlReader GetXmlReader(FeedDirectory dir, string fileName);
        XmlWriter GetXmlWriter(FeedDirectory dir, string fileName);

    }
}
